import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../views/login/Login.vue'


Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Login',
    alias: '/login',
    component: Login
  },
  {
    path: '/register',
    name: 'Register',
    component: () => import( '../views/register/Register.vue')
  },
  {
    path: '/forget',
    name: 'Forget',
    component: () => import( '../views/forget/Forget.vue')
  },
  {
    path: '/home',
    name: 'Home',
    component: () => import( '../views/home/Home.vue'),
    children:[
      {
        path: '/',
        name: 'Index', 
        component: () => import( '../views/index/Index.vue')
      },
      {
        path: '/Index.vue',
        name: 'Index',
        component: () => import( '../views/index/Index.vue')
      },
      {
        path: '/condition',
        name: 'Condition',
        component: () => import( '../views/condition/condition')
      },
      {
        path: '/adjustment',
        name: 'Adjustment',
        component: () => import( '../views/adjustment/Adjustment.vue')
      },
      {
        path: '/Tax.vue',
        name: 'Tax', 
        component: () => import( '../views/taxRate/Tax.vue')
      },
      {
        path: '/quanxian.vue',
        name: 'quanxian', 
        component: () => import( '../views/Template/quanxian')
      },{
        path: '/glquanxian.vue',
        name: 'glquanxian',
        component: () => import( '../views/Template/glquanxian.vue')
      },
      {
        path: '/adduser',
        name: 'Dept',
        component: () => import( '../views/adduser/addUser')
      },
      {
        path: '/business',
        name: 'Busainess',
        component: () => import( '../views/business/business')
      },
      {
        path: '/cenji',
        name: 'cenji',
        // route level code-splitting
        // this generates a separate chunk (about.[hash].js) for this route
        // which is lazy-loaded when the route is visited.
        component: () => import( '../views/detailed/detailed')

      },
      {
        path: '/initiateAudit',
        name: 'InitiateAudit',
        component: () => import( '../views/InitiateAudit/InitiateAudit')
      }, 
      {
        path: '/maintain',
        name: 'Maintain',
        component: () => import( '../views/maintain/Maintain')
      },  
      {
        path: '/channel',
        name: 'Channel',
        component: () => import( '../views/channel/channel.vue'),
      },
      {
      path: '/channelStep2',
      name: 'channelStep2',
      component: () => import( '../views/channel/channelStep2.vue'),
    },
    {
      path: '/channelStep3',
      name: 'channelStep3',
      component: () => import( '../views/channel/channelStep3.vue'),
    },
      {
        path: '/examineContent',
        name: 'ExamineContent',
        component: () => import( '../views/examine/ExamineContent.vue')
      },
      {
        path: '/paymentRemuneration',
        name: 'PaymentRemuneration',
        component: () => import( '../views/grant/PaymentRemuneration')
      },
      {
        path: '/templateModel',
        name: 'templateModel',
        component: () => import( '../views/Template/template.vue'),
      },  
       {
        path: '/templateStep2',
        name: 'templateStep2',
        component: () => import( '../views/Template/template2'),
      },  
      {
        path: '/templateStep3',
        name: 'templateStep3',
        component: () => import( '../views/Template/template3'),
      }, 
      {
        path: '/model',
        name: 'model',
        component: () => import( '../views/Template/model'),
      } 
    ]
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router